package book;

public class BookList {
    protected Book[] books = new Book[100];
    private int bookNum;

    public BookList() {
        books[0] = new Book("那小子真帅","那小子",19,"搞笑漫画");
        books[1] = new Book("那小子真酷","那小子",19,"搞笑漫画");
        books[2] = new Book("那小子真棒","那小子",19,"搞笑漫画");
        this.bookNum = 3;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public Book getBook(int pos) {
        return books[pos];
    }

    public void setBook(Book book) {
        books[bookNum] = book;
    }

    public void setBook(Book book,int pos) {
        books[pos] = book;
    }
}
